home *** CD-ROM | disk | FTP | other *** search
- /* preload nav images for hover
- nav_group = new Image();
- nav_group.src = '/i/nav_group.gif';
- nav_tp_hover = new Image();
- nav_tp_hover.src = 'i/nav_tp_hover.png';
- nav_about_hover = new Image();
- nav_about_hover.src = 'i/nav_about_hover.png';
- nav_support_hover = new Image();
- nav_support_hover.src = 'i/nav_support_hover.png'; */
-
- /* Script to toggle between Latest Updated and Most Popular on plugin center */
-
- /* function toggle(lnk, other_lnk, show_elem, hide_elem) {
- lnk.style.textDecoration = 'underline';
- document.getElementById(other_lnk).style.textDecoration = 'none';
- document.getElementById(hide_elem).style.display = 'none';
- document.getElementById(show_elem).style.display = 'block';
- } */
-
- /* Used to clear the floats for IE/Mac: http://www.positioniseverything.net/easyclearing.html */
-
- function fixmacie(classname) {
- var divs=document.getElementsByTagName("DIV");
- for (var d=0; d < divs.length;d++) {
- if (divs[d].className.indexOf(classname)==0) {
- divs[d].innerHTML += "<div class='mac-clearfix'> </div>";
- /* The above html tags get added to the end of
- the cleared container if the browser is IE/mac. */
- }
- }
- }
- function init() {
- /* Check if the browser is IE5 Mac */
- if (navigator.appVersion.indexOf('Mac')!=-1 && document.all) {
- /* Pass the class name on the container to fixmacie
- (must be the FIRST classname if multiple classnames
- are used on the div!) */
- fixmacie("clearfix");
- }
- }
- /* start the ball rolling when the page loads */
- window.onload = init;
-
- /* New windows when we need them */
- function openWindow(document,name,width,height) {
- window.open(document,name,'width='+width+',height='+height+',scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=100,top=100');
- }